# Scrapy settings for scrapy_fuligirl project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
#     https://docs.scrapy.org/en/latest/topics/settings.html
#     https://docs.scrapy.org/en/latest/topics/downloader-middleware.html
#     https://docs.scrapy.org/en/latest/topics/spider-middleware.html

BOT_NAME = 'scrapy_fuligirl'

SPIDER_MODULES = ['scrapy_fuligirl.spiders']
NEWSPIDER_MODULE = 'scrapy_fuligirl.spiders'


# Crawl responsibly by identifying yourself (and your website) on the user-agent
#USER_AGENT = 'scrapy_fuligirl (+http://www.yourdomain.com)'

# Obey robots.txt rules
ROBOTSTXT_OBEY = True

# Configure maximum concurrent requests performed by Scrapy (default: 16)
#CONCURRENT_REQUESTS = 32

# Configure a delay for requests for the same website (default: 0)
# See https://docs.scrapy.org/en/latest/topics/settings.html#download-delay
# See also autothrottle settings and docs
#DOWNLOAD_DELAY = 3
# The download delay setting will honor only one of:
#CONCURRENT_REQUESTS_PER_DOMAIN = 16
#CONCURRENT_REQUESTS_PER_IP = 16

# Disable cookies (enabled by default)
#COOKIES_ENABLED = False

# Disable Telnet Console (enabled by default)
#TELNETCONSOLE_ENABLED = False

# Override the default request headers:
DEFAULT_REQUEST_HEADERS = {
    'authority': 'fuligirl.top',
    'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
    'accept-language': 'zh-CN,zh;q=0.9',
    'cache-control': 'no-cache',
    'cookie': 'HstCfa4786733=1713080591537; HstCmu4786733=1713080591537; HstCnv4786733=1; c_ref_4786733=https%3A%2F%2Fwww.bing.com%2F; XSRF-TOKEN=eyJpdiI6ImJ2N2ZNTmJxYzU3ZlljVXF5NkFkK3c9PSIsInZhbHVlIjoiTUZmWStuNVdUZk9CU0FONlk4WSs3bVhZaXZROGxEMkVVSTMydEs2VitxeEVlWm82QzFPYXl4dWN5dmdoajVqa3lMMDFETU4xQTdUVzFIRUFMWHJON1IwWDEyRmo0SWVhd0I2K1U2MExoRFl0NWMrWnhSbUovZ3NNcTNMS0NWS0kiLCJtYWMiOiJlYjczZDBmODcyZjRhY2E2Mzg2ZTk3MzEzYmU2NjdmNjg1ZWNlNTYzNDU3NDMyYzFlOGJmZmU2ODgzMzczYmNjIiwidGFnIjoiIn0%3D; laravel_session=eyJpdiI6IkV2M2pFdVZXL1cxZGFtK0NtTUtYMWc9PSIsInZhbHVlIjoiRi9yN3lVV1dkMkM2ZlBnb1FDbHE2eTkxbFFjZ1VkTDVSS1VSaGJQT3d6RGg5NHl6a25GejJnQ3BCVC9VQVJVYm5BYWhYSzBJNCt6QXhteEVLODIveUV1dWptVUJ4L2lHL24zdHl2WFRoRFV4cG0weVlTUlRESGM4bGVPU2k3UFgiLCJtYWMiOiJjNjQ3ZjVkYjZmYjkxMDZmYmM5MTgwNmVkMWE3YzRmYjk2NDA3OTk1ZWVhZmM1ZDlhMjljMmQzZDIyYTEyODdjIiwidGFnIjoiIn0%3D; HstCla4786733=1713085939454; HstPn4786733=29; HstPt4786733=29; HstCns4786733=3; sb_count_f2fb4fbbb74a99fbc90a129ce301b8c3=6; pp_main_e3e3da20dcc108e5320849789ad63147=1; pp_sub_e3e3da20dcc108e5320849789ad63147=1; pp_delay_e3e3da20dcc108e5320849789ad63147=1',
    'pragma': 'no-cache',
    'referer': 'https://fuligirl.top/models/13',
    'sec-ch-ua': '"Not A(Brand";v="99", "Microsoft Edge";v="121", "Chromium";v="121"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    'sec-fetch-dest': 'document',
    'sec-fetch-mode': 'navigate',
    'sec-fetch-site': 'same-origin',
    'sec-fetch-user': '?1',
    'upgrade-insecure-requests': '1',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0',
}

# Enable or disable spider middlewares
# See https://docs.scrapy.org/en/latest/topics/spider-middleware.html
#SPIDER_MIDDLEWARES = {
#    'scrapy_fuligirl.middlewares.ScrapyFuligirlSpiderMiddleware': 543,
#}

# Enable or disable downloader middlewares
# See https://docs.scrapy.org/en/latest/topics/downloader-middleware.html
#DOWNLOADER_MIDDLEWARES = {
#    'scrapy_fuligirl.middlewares.ScrapyFuligirlDownloaderMiddleware': 543,
#}

# Enable or disable extensions
# See https://docs.scrapy.org/en/latest/topics/extensions.html
#EXTENSIONS = {
#    'scrapy.extensions.telnet.TelnetConsole': None,
#}

# Configure item pipelines
# See https://docs.scrapy.org/en/latest/topics/item-pipeline.html
#ITEM_PIPELINES = {
#    'scrapy_fuligirl.pipelines.ScrapyFuligirlPipeline': 300,
#}

# Enable and configure the AutoThrottle extension (disabled by default)
# See https://docs.scrapy.org/en/latest/topics/autothrottle.html
#AUTOTHROTTLE_ENABLED = True
# The initial download delay
#AUTOTHROTTLE_START_DELAY = 5
# The maximum download delay to be set in case of high latencies
#AUTOTHROTTLE_MAX_DELAY = 60
# The average number of requests Scrapy should be sending in parallel to
# each remote server
#AUTOTHROTTLE_TARGET_CONCURRENCY = 1.0
# Enable showing throttling stats for every response received:
#AUTOTHROTTLE_DEBUG = False

# Enable and configure HTTP caching (disabled by default)
# See https://docs.scrapy.org/en/latest/topics/downloader-middleware.html#httpcache-middleware-settings
#HTTPCACHE_ENABLED = True
#HTTPCACHE_EXPIRATION_SECS = 0
#HTTPCACHE_DIR = 'httpcache'
#HTTPCACHE_IGNORE_HTTP_CODES = []
#HTTPCACHE_STORAGE = 'scrapy.extensions.httpcache.FilesystemCacheStorage'

# Set settings whose default value is deprecated to a future-proof value
REQUEST_FINGERPRINTER_IMPLEMENTATION = '2.7'
TWISTED_REACTOR = 'twisted.internet.asyncioreactor.AsyncioSelectorReactor'


DATABASE = {
    'drivername': 'mysql',
    'username': 'root',
    'password': '520777',
    'host': 'localhost',
    'port': '3306',
    'database': 'fuligirl',
}
